package com.sanyang.lawyer.mapper.finance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanyang.lawyer.entity.Finance_invoice;
import com.sanyang.lawyer.entity.Finance_pay;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @program: lawyer
 * @description: 发票
 * @author: lql
 * @create: 2019-10-11 08:51
 **/
@Mapper
public interface Finance_invoiceMapper extends BaseMapper<Finance_invoice> {

        public List<Finance_invoice> list(Map<String,String> map);

        //修改发票状态
        public int update(Finance_invoice finance_invoice);

        //通过caseid查找
        public List<Finance_invoice> getByCase(String caseId);
        //分类开票汇总
        public List<Map<String,Object>> invoiceCollect(Map map);


        //添加发票信息
        public int add(Map<String,String> map);

        //删除
        public int del(int invoiceId);

        //根据id查询
        public Finance_invoice getById(int invoiceId);
}
